
<%@ page import="com.opeace.Child" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'child.label', default: 'Child')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-child" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		
			<h1><g:message code="default.list.label" args="[entityName]" /></h1>
                      
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table class = "table3" align="center">

                        <tr>
					
						<g:sortableColumn property="firstName" title="${message(code: 'child.firstName.label', default: 'Name')}" />
					
						<g:sortableColumn property="birthDate" title="${message(code: 'child.birthDate.label', default: 'Birth Date')}" />
					
						<g:sortableColumn property="addressLine" title="${message(code: 'child.addressLine.label', default: 'Address Line')}" />
                                                
                                                <g:sortableColumn property="addressAPT" title="${message(code: 'child.addressAPT.label', default: 'Apt')}" />
					
						<g:sortableColumn property="addressState" title="${message(code: 'child.addressState.label', default: 'Address State')}" />
					
						<g:sortableColumn property="addressZip" title="${message(code: 'child.addressZip.label', default: 'Address Zip')}" />
					
					
					</tr>
		
				<tbody>
				<g:each in="${childInstanceList}" status="i" var="childInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${childInstance.id}">${fieldValue(bean: childInstance, field: "firstName")} ${fieldValue(bean: childInstance, field: "lastName")}</g:link></td>
                                
                                                <td><g:formatDate format="MM-dd-yyyy" date="${childInstance.birthDate}" /></td>
                                                
                                                <td>${fieldValue(bean: childInstance, field: "addressLine")}</td>
                                                
                                                <td>${fieldValue(bean: childInstance, field: "addressAPT")}</td>
					
					
						<td>${fieldValue(bean: childInstance, field: "addressState")}</td>
					
						<td><g:formatNumber number="${childInstance.addressZip}" format="#####" /></td>
					
					
					</tr>
				</g:each>
				</tbody>
			</table>
                        <div class="nav" role="navigation">
			<ul>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
                      </div>
			
	</body>
</html>
